import {myRequest} from "../utils/request.js"
//我的订单-订单列表
export function orderList(data) {
	return myRequest({
		url: 'goods_orders/orderList',
		method: "POST",
		data:data||{}
	})
}
//我的订单订单详情

export function orderInfo(data) {
	return myRequest({
		url: 'goods_orders/orderInfo',
		method: "POST",
		data:data||{}
	})
}
//自由市场买方

export function rent_orders(data) {
	return myRequest({
		url: 'rent_orders/orderList',
		method: "POST",
		data:data||{}
	})
}
//自由市场取消订单

export function canel(data) {
	return myRequest({
		url: 'rent_orders/cancel',
		method: "POST",
		data:data||{}
	})
}
//自由市场售卖方

export function rentorder(data) {
	return myRequest({
		url: 'goods_rent/rentList',
		method: "POST",
		data:data||{}
	})
}
//自由市场订单详情

export function rentorderdetail(data) {
	return myRequest({
		url: 'rent_orders/orderInfo',
		method: "POST",
		data:data||{}
	})
}
//取消售卖

export function cancleRent(data) {
	return myRequest({
		url: 'goods_rent/cancleRent',
		method: "POST",
		data:data||{}
	})
}
export function rentorderInfo(data) {
	return myRequest({
		url: 'goods_rent/orderInfo',
		method: "POST",
		data:data||{}
	})
}
export function proporder(data) {
	return myRequest({
		url: 'prop_rent/index',
		method: "POST",
		data:data||{}
	})
}
export function propordertwo(data) {
	return myRequest({
		url: 'prop_rent_orders/index',
		method: "POST",
		data:data||{}
	})
}
export function propcancel(data){
	return myRequest({
		url:"prop_rent_orders/cancel",
		method: "post",
		data:data||{}
	})
}

export function propcancleRent(data){
	return myRequest({
		url:"prop_rent/cancleRent",
		method: "post",
		data:data||{}
	})
}
export function proporderInfo(data){
	return myRequest({
		url:"prop_rent_orders/orderInfo",
		method: "post",
		data:data||{}
	})
}

export function proporderInfotwo(data){
	return myRequest({
		url:"prop_rent/orderInfo",
		method: "post",
		data:data||{}
	})
}
// 孵化藏品退出孵化
export function outHatch(data) {
	return myRequest({
		url: 'member_space/outHatch',
		method: "POST",
		data
	})
}

